package main

import "fmt"

func main() {
	fmt.Printf("%#v", fizzBuzz(3))
}
func fizzBuzz(n int) (res []string) {
	str := []string{"Fizz", "Buzz", "FizzBuzz"}
	res = make([]string, n)
	num := n
	for i := range res {
		num = i + 1
		if num%3 == 0 && num%5 == 0 {
			println(i)
			res[i] = str[2]
			continue
		} else if num%3 == 0 {
			res[i] = str[0]
			continue
		} else if num%5 == 0 {
			res[i] = str[1]
			continue
		} else {
			res[i] = fmt.Sprintf("%d", num)
		}
	}
	return
}
